package paidaxing.blog.comment.entity;

import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * 评论表(Comments)实体类
 *
 * @author heef
 * @since 2025-10-19 10:50:50
 */
@Data
public class Comments implements Serializable {
    private static final long serialVersionUID = -83239426508830650L;
    /**
     * 评论ID
     */
    private Long id;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论类型: POST,PAGE
     */
    private String type;
    /**
     * 评论用户ID
     */
    private Long userId;
    /**
     * 用户昵称（关联查询）
     */
    private String userNickname;
    /**
     * 用户头像（关联查询）
     */
    private String userAvatar;
    /**
     * 文章ID
     */
    private Long postId;
    /**
     * 父评论ID
     */
    private Long parentId;
    /**
     * 回复给哪个用户ID
     */
    private Long replyTo;
    /**
     * 回复给用户昵称（关联查询）
     */
    private String replyToNickname;
    /**
     * 点赞数
     */
    private Integer likeCount;
    /**
     * 状态: PUBLISHED,PENDING,SPAM,TRASH
     */
    private String status;
    /**
     * 评论者IP
     */
    private String ipAddress;
    /**
     * 用户代理
     */
    private String userAgent;
    /**
     * 创建时间
     */
    private Date createdAt;
    /**
     * 更新时间
     */
    private Date updatedAt;
    /**
     * 逻辑删除 0:正常 1:删除
     */
    private Integer deleted;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getReplyTo() {
        return replyTo;
    }

    public void setReplyTo(Long replyTo) {
        this.replyTo = replyTo;
    }

    public String getReplyToNickname() {
        return replyToNickname;
    }

    public void setReplyToNickname(String replyToNickname) {
        this.replyToNickname = replyToNickname;
    }

    public Integer getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Integer likeCount) {
        this.likeCount = likeCount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}